import Vue from 'vue'
import Router from 'vue-router'
import Login from '@/components/Login'
import register from '@/components/Register'
import index from '@/components/Index'
import classMsg from '@/components/ClassMsg'
import showMsg from '@/components/ShowMsg'
import testMsg from '@/components/TestMsg'
import examMsg from '@/components/ExamMsg'
import personMsg from '@/components/PersonMsg'
import scoreMsg from '@/components/ScoreMsg'
import login from '@/components/Login'
import doneMsg from '@/components/DoneMsg'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'login',
      component: login
    },
    {
      path: '/index',
      name: 'index',
      component: index
    },
    {
      path: 'register',
      component: register
    },
    {
      path:'/classMsg',
      name:'classMsg',
      component:classMsg
    },
    {
      path:'/showMsg',
      name:'showMsg',
      component:showMsg
    },
    {
      path:'/testMsg',
      name:'testMsg',
      component:testMsg
    },
    {
      path:'/personMsg',
      name:'personMsg',
      component:personMsg
    },
    {
      path:'/examMsg',
      name:'examMsg',
      component:examMsg
    },
    {
      path:'/scoreMsg',
      name:'scoreMsg',
      component:scoreMsg
    },
    {
      path:'/doneMsg',
      name:'doneMsg',
      component:doneMsg
    }
  ]
})
